<?php

class ImportExcelForm extends CFormModel
{

    //put your code here
    public $xfile;

    public function rules()
    {
        return array(
            array('xfile', 'file', 'types' => 'xlsx, xls', 'allowEmpty' => true, 'safe' => true),
        );
    }

}
